import request from "@/util/request.js"

const getAll = ()=>{
    return request({
        url:"RoleInfo/getAll",
    })
}

const Get = (Id)=>{
    return request({
        url:"RoleInfo/Get",
		params:{Id}
    })
}
const Query = (data)=>{
    return request({
        url:"RoleInfo/Query",
		params:data
    })
}
const Add = (data)=>{
    return request({
        url:"RoleInfo/Add",
		data:data,
		method:"post"
    })
}
const Update = (data)=>{
    return request({
        url:"RoleInfo/Update",
		data:data,
		method:"post"
    })
}
const Delete = (id)=>{
    return request({
        url:"RoleInfo/Delete",
		params:{id},
		method:'post'
    })
}
export default {
   Query,Add,Update,Delete,Get,getAll
}